home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / SAT 2.4.0 / SAT / Demo ƒ / OffscreenToys SAT demo ƒ / OffscreenToys SAT demo notes < prev    next >
Encoding:
Text File  |  1996-08-23  |  1.8 KB  |  31 lines  |  [TEXT/ttxt]

  1. --------- OFFSCREEN TOYS with SAT ---------
  2. by Ingemar Ragnemalm 1994
  3.  
  4. Offscreen Toys is a nice little demo I made to make a SAT-like demo with complete source
  5. code, independent of any libraries (except Apple's). Now, this should be easier to do with
  6. SAT, right? Well, partially so, but while adapting it to SAT, I ran into a minor flaw that
  7. SAT had (and doesn't have from version 2.1 and up), namely that drawing took place after
  8. moving sprites, but before checking for collisions, which didn't look too good in programs
  9. where sprites bounce off each other. After fixing this flaw, I would say that the SAT
  10. version is indeed a bit better than the independent version. The result is quite a bit faster
  11. and with asynch sound.
  12.  
  13. Please don't confuse Offscreen Toys SAT with the original Offscreen Toys! They are two different demos, and neither makes the other obsolete.
  14.  
  15. As yet another SAT demo, what does it give us?
  16. • If you wonder what it costs to have a real event loop, or good collision handling, this demo
  17. shows that pretty well.
  18. • Demonstrates a moveable window AND fast mode at the same time, with the precautions
  19. that demands when moving the window. (The window mustn't be moved outside the screen,
  20. some internal SAT variables – that you otherwise should never care about – must be adjusted,
  21. and we must stay word-aligned to make it work in b/w).
  22.  
  23. I don't consider this demo final in any way. Known flaws:
  24. • The code for the marble should be separated from the main program, to make the code easier
  25. to follow.
  26. I'll fix those things when I find time and inspiration for it - but you are welcome to do it if
  27. you want!
  28.  
  29. C translation by Charles Brunet (cbrunet@geocities.com) 1996. Comments with "-- Charles" are his. The resource file name was changed to reflect the moronic resource file handling in Think C.
  30.  
  31.